<!DOCTYPE html>
<html>
	<?php
	echo $this->render('common/header.phtml');?>
	<body>
	    <div class="bg">
		<?php
		echo $this->render('common/navi.phtml');
		?>
		<div class="model-box">
			<div class="pre-bt-box">
				<a href="###" class="pre-bt"></a>
			</div>
			<div class="model-bt-l">
				<div class="model-btl-inner">
					<ul>
						<?php
						$modelListTable = Zend_Registry::get('database')->modellist;
						$modelList = $this->modelList;
						foreach ($modelList as $model) {
							$pictures = unserialize($model[$modelListTable->pictures]);
							$pictureSize = current(unserialize($model[$modelListTable->pictureSize]));
							$width = round(285*($pictureSize['width'] / $pictureSize['height']));
						?>
						<li style="width: <?php echo $width?>px"><img style="width: <?php echo $width?>px" src="<?php echo $pictures[$model[$modelListTable->coverimage]];?>" height="285" width="<?php echo $width; ?>" />
						</li>
						<?php
						}
						?>
					</ul>
				</div>
			</div>
			<div class="model-column">
				<ul class="model-column-inner">
					<?php
					$language = $this->language;
					foreach ($modelList as $model) {
						$pictures = unserialize($model[$modelListTable->pictures]);
						$model = $this->changeDescLang($model, $language);
						$pictureSize = current(unserialize($model[$modelListTable->pictureSize]));
						$width = round(285*($pictureSize['width'] / $pictureSize['height']));
					?>
					<li style="width: <?php echo $width?>px">
						<img alt="<?php echo $model['description'];?>" title="<?php echo $model['description'];?>" style="cursor: pointer; width: <?php echo $width?>px" src="<?php echo $pictures[$model[$modelListTable->coverimage]];?>" height="285" width="<?php echo $width; ?>" originalWidth="<?php echo $pictureSize['width'];?>" originalHeight="<?php echo $pictureSize['height'];?>" />
						<input type="hidden" value="<?php echo $model['description'];?>">
					</li>
					<?php
					}
					?>
				</ul>
			</div>
			<div class="next-bt-box">
				<a href="###" class="next-bt"></a>
			</div>
			<div class="model-bt-r">
				<div class="model-btr-inner">
					<ul>
						<?php
						foreach ($modelList as $model) {
							$pictures = unserialize($model[$modelListTable->pictures]);
							$pictureSize = current(unserialize($model[$modelListTable->pictureSize]));
							$width = round(285*($pictureSize['width'] / $pictureSize['height']));
						?>
						<li style="width: <?php echo $width?>px"><img style="width: <?php echo $width?>px" src="<?php echo $pictures[$model[$modelListTable->coverimage]];?>" height="285" width="<?php echo $width; ?>" />
						</li>
						<?php
						}
						?>
					</ul>
				</div>
			</div>
		</div>
		<div class="mask" style="display: none"></div>
		<div class="model-big life-big" style="display: none">
			<div class="fl">
				<div class="model-bg-t-text" id="description"></div>
				<div class="model-big-inner">
					<img src="" />
				</div>
			</div>
		</div>
		<?php
		echo $this->render('common/footer.phtml');
		?>
		<?php
		echo $this->render('common/script.phtml');
		?>
		</div>
	</body>
</html>
